package org.dicker.biz.impl;

import java.util.List;

import org.dicker.biz.MessageBiz;
import org.dicker.dao.MessageDao;
import org.dicker.dao.impl.MessageDaoImpl;
import org.dicker.entity.MessageInfo;

public class MessageBizImpl implements MessageBiz {

	private MessageDao mDao=new MessageDaoImpl();

	@Override
	public List<MessageInfo> selectByList(String name, int page, int pageSize) {
		return mDao.selectByList(name, page, pageSize);
	}

	@Override
	public int selectCount(String name) {
		return mDao.selectCount(name);
	}

	@Override
	public int deleteById(int messageid) {
		return mDao.deleteById(messageid);
	}

	@Override
	public boolean addMessage(MessageInfo mInfo) {
		return mDao.addMessage(mInfo);
	}

	@Override
	public MessageInfo selectByInfo(int id) {
		return mDao.selectByInfo(id);
	}

	@Override
	public boolean updateById(MessageInfo minfo) {
		return mDao.updateById(minfo);
	}
	
	

	
}
